{literal}
<script type="text/javascript" src= "/PariGest/pages/js/prototype.js"></script>
<script type="text/javascript">
function changeCompte()
{
  document.cookie = $F("NomIdCompteSession") + " = " + escape($F("idCompte"));
  document.forms[0].submit();
}
</script>
{/literal}

<input type="hidden" id="NomIdCompteSession" value="{$NomIdCompteSession}">
<table style="width:100%">
  <tr>
    <td class="droite" width=100%>Compte</td>
    <td class="droite">
      <select id="idCompte" name="idCompte" onChange="changeCompte()">
        {foreach from=$LstComptes item=compte}
          {html_options values=$compte.IdCompte output=$compte.Libelle selected=$IdCompte}               
        {/foreach}
      </select>
  </td></tr>
</table>

{if $iRefresh == "OUI" }
{literal}
<script>
document.forms[0].submit();
</script>
{/literal}
{/if}